﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Media;

namespace EmprestaAE.Common.AttachedProperties
{
    public class Images
    {


        public static ImageSource GetNormalImage(DependencyObject obj)
        {
            return (ImageSource)obj.GetValue(NormalImageProperty);
        }

        public static void SetNormalImage(DependencyObject obj, ImageSource value)
        {
            obj.SetValue(NormalImageProperty, value);
        }

        // Using a DependencyProperty as the backing store for NormalImage.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty NormalImageProperty =
            DependencyProperty.RegisterAttached("NormalImage", typeof(ImageSource), typeof(Images), new PropertyMetadata(0));



        public static ImageSource GetPressedImage(DependencyObject obj)
        {
            return (ImageSource)obj.GetValue(PressedImageProperty);
        }

        public static void SetPressedImage(DependencyObject obj, ImageSource value)
        {
            obj.SetValue(PressedImageProperty, value);
        }

        // Using a DependencyProperty as the backing store for PressedImage.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty PressedImageProperty =
            DependencyProperty.RegisterAttached("PressedImage", typeof(ImageSource), typeof(Images), new PropertyMetadata(0));




        public static bool GetImageVisibility(DependencyObject obj)
        {
            return (bool)obj.GetValue(ImageVisibilityProperty);
        }

        public static void SetImageVisibility(DependencyObject obj, bool value)
        {
            obj.SetValue(ImageVisibilityProperty, value);
        }

        // Using a DependencyProperty as the backing store for ImageVisibility.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ImageVisibilityProperty =
            DependencyProperty.RegisterAttached("ImageVisibility", typeof(bool), typeof(Images), new PropertyMetadata(0));

        
        
    }
}
